<?
/*
 * Copyright (c) 2008 Sergey Bondari, bondari@bondari.net
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * - Redistributions of source code must retain the above copyright
 *   notice, this list of conditions and the following disclaimer.
 * - Redistributions in binary form must reproduce the above copyright
 *   notice, this list of conditions and the following disclaimer in the
 *   documentation and/or other materials provided with the distribution.
 * - The name of the author may not be used to endorse or promote products
 *   derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

namespace Mosaic\System;

/**
 * Public namespaces
 * @package System
 * @subpackage Constants
 */
define('NS_RDF', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#');
define('NS_RDFS', 'http://www.w3.org/2000/01/rdf-schema#');
define('NS_XSD', 'http://www.w3.org/2001/XMLSchema#');
define('NS_DC', 'http://purl.org/dc/elements/1.1/');


/**
 * Mosaic proprietary namespaces
 * @package System
 * @subpackage Constants
 */
define('NS_MC', "http://www.bondari.net/mosaic/config-schema/");
define('NS_MR', "http://www.bondari.net/mosaic/system-resource/");
define('NS_TILE', 'http://www.bondari.net/mosaic/system-resource/tile');
define('NS_MML', 'http://www.bondari.net/mosaic/markup');
define('NS_XHTML', 'http://www.w3.org/1999/xhtml');


/**
 * Node subprocess enumeration
 * @package System
 * @subpackage Constants
 */
const PRECURSOR = 1;      // node thread before initialization 
const WORKER = 2;         // worker thread
const REQUEST_BROKER = 3; // request broker thread
const OBJECT_BROKER = 4;  // object broker
const NAMESERVER = 5;     // object broker request broker

/**
 * Processing/execution type enumeration
 * @package System
 * @subpackage Constants
 */
const SYNC = 1;
const ASYNC = 2;

/**
 * Component type enumeration
 * @package System
 * @subpackage Constants
 */
const STATEFUL = 1;
const STATELESS = 2;


/**
 * Processing/execution type enumeration
 * @package System
 * @subpackage Constants
 */
const RB_NO_CACHE = 0;